package com.example.test.service;

import com.example.test.bean.BaseOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.test.bean.DTO.input.OrderInputDTO;
import com.example.test.bean.DTO.output.OrderOutputDTO;
import com.example.test.common.model.PageModel;
import com.example.test.common.model.R;

/**
 * <p>
 * 基础订单表 服务类
 * </p>
 *
 * @author dz
 * @since 2022-04-10
 */
public interface BaseOrdersService extends IService<BaseOrders> {

    R getOrderByKeyword(String keyword, PageModel pageModel);

    R getOrder(Long orderId);

    R addOrder(OrderOutputDTO orderOutputDTO);

    R updateOrder(OrderInputDTO orderInputDTO);

    R finishOrder(OrderInputDTO orderInputDTO);

    R deleteOrder(Long orderId);

    R createAll();
}
